﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;

namespace BLL
{
    public class Materials_BLL
    {
        public static Materials_DAL cls = new Materials_DAL();
        #region[Get-Data]
        public DataTable GetMaterials()
        {
            return cls.GetMaterials();
        }
        public DataTable GetMaterialsDetail_Edit(int id)
        {
            return cls.GetMaterialsDetail_Edit(id);
        }
        public DataTable GetMaterialFillter(int id)
        {
            return Materials_DAL.GetMaterialFillter(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertMaterials(ET.Materials_ET obj)
        {
            return cls.InsertMaterials(obj);
        }
        public static bool UpdateMaterials(ET.Materials_ET obj)
        {
            return cls.UpdateMaterials(obj);
        }
        public static bool DeleteMaterials(int id)
        {
            return cls.DeleteMaterials(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion
    }
}
